package com.cserver.pro.controller;

import com.cserver.pro.entity.Coursetab;
import com.cserver.pro.service.CoursetabService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 课程表
(Coursetab)表控制层
 *
 * @author makejava
 * @since 2020-02-29 21:38:28
 */
@RestController
@RequestMapping("coursetab")
public class CoursetabController {
    /**
     * 服务对象
     */
    @Autowired
    private CoursetabService coursetabService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Coursetab selectOne(Integer id) {

        return this.coursetabService.queryById(id);
    }

    public Coursetab selectOne2(Integer id) {

        return this.coursetabService.queryById(id);
    }
}